Use managed NTLM on RHEL 8 to fix NegotiateAuthentication test failures#129468
Open
medhatiwari wants to merge 1 commit into
Open
Use managed NTLM on RHEL 8 to fix NegotiateAuthentication test failures#129468medhatiwari wants to merge 1 commit into
medhatiwari wants to merge 1 commit into
Conversation
Contributor
|
Tagging subscribers to this area: @dotnet/ncl, @bartonjs, @vcsjones |
386d6ea to
e4798c5
Compare
Open
3 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
RHEL 8 ships
gss-ntlmssp 1.2.0built against OpenSSL 1.1.1. Unlike RHEL 9/10 (which use OpenSSL 3.x), this combination causes gssntlmssp to fail when producing NTLM Type 3 (Authenticate) messages,GetOutgoingBlobreturnsGenericFailurewhen processing a server challenge.This is the same class of issue already handled for Ubuntu 24/26 and openSUSE 16 (which ship a broken
gss-ntlmssp 1.2). The fix adds RHEL 8 to theUseManagedNtlmcondition usingPlatformDetection.IsRedHatFamily && !PlatformDetection.IsOpenSsl3, which enables the managed NTLM implementation only on RHEL versions with OpenSSL < 3 (i.e., RHEL 8). RHEL 9 and 10 (OpenSSL 3.x) are unaffected.Verification
Tested on a RHEL 8.10 s390x machine (
gssntlmssp-1.2.0-1.el8_8, OpenSSL 1.1.1k):GenericFailure— gssntlmssp cannot produce an Authenticate message.DOTNET_System_Net_Security_UseManagedNtlm=1): Full NTLM handshake completes successfully — valid Type 3 message (356 bytes,status=Completed).This resolves 11 NegotiateAuthentication test failures seen in CI on RHEL 8.